:root {
  color-scheme: light dark;
  supported-color-schemes: light dark;
}

html {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Microsoft YaHei', 'Segoe UI',
    Ubuntu, Roboto, Oxygen, Cantarell, 'Fira Sans', 'Droid Sans',
    'Helvetica Neue', Helvetica, Arial, Verdana, 'Lucida Grande',
    sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji';
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
}

body {
  display: block;
  color: rgb(36, 41, 46);
  background-color: #f3f6f9;

  word-break: normal;
  word-wrap: break-word;

  hyphens: auto;
  -webkit-hyphens: auto;
  -ms-hyphens: auto;
  -moz-hyphens: auto;

  padding-top: constant(safe-area-inset-top);
  padding-right: constant(safe-area-inset-right);
  padding-bottom: constant(safe-area-inset-bottom);
  padding-left: constant(safe-area-inset-left);

  padding-top: env(safe-area-inset-top);
  padding-right: env(safe-area-inset-right);
  padding-bottom: env(safe-area-inset-bottom);
  padding-left: env(safe-area-inset-left);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 600;
  line-height: 1.25;
}

h1 {
  font-size: 2em;
}

h2 {
  font-size: 1.5em;
}

h3 {
  font-size: 1.25em;
}

h4 {
  font-size: 1em;
}

h5 {
  font-size: .875em;
}

h6 {
  font-size: .85em;
}

blockquote,
q {
  quotes: none;
  margin: 0;
}

::selection {
  color: #fff;
  background-color: #e33e33;
}

mark {
  background-color: rgba(12, 242, 143, .2);
}

mark {
  padding-left: .15em;
  padding-right: .15em;
  border-radius: 3px;
}

code,
tt,
kbd,
samp {
  font-family: Menlo, Consolas, 'Liberation Mono', monospace;
  font-weight: 400;
  font-size: 85%;
}

pre {
  display: block;
  text-align: left;
  font-size: 85%;
  line-height: 1.45;
  margin: 0;
  padding: 16px;
  
  border-radius: 3px;
  background-color: #f6f8fa;

  -o-tab-size: 4;
  -moz-tab-size: 4;
  tab-size: 4;

  overflow: auto;
}

code,
kbd,
tt,
samp {
  color: #b00;
  padding: .2em .4em;
  margin: 0;
  font-size: 85%;
  background-color: #f9f6f6;
  border-radius: 3px;
}

pre code,
pre kbd,
pre tt,
pre samp {
  display: inline;
  font-size: inherit;
  color: inherit;
  padding: 0;
  border-radius: 0;
  background-color: rgba(0, 0, 0, 0);
}

table {
  border-spacing: 0;
  border-collapse: collapse;
}

td,
th {
  padding: 0;
}

table thead {
  color: rgba(29, 43, 76);
}

table tr:nth-child(even) {
  background-color: #f3f6fa;
}

a {
  color: #06c;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-decoration-skip: objects;
  -moz-text-decoration-skip: objects;
  text-decoration-skip: objects;
}

a:hover {
  text-decoration: underline;
}

del {
  opacity: 0.5;
}

abbr,
acronym {
  cursor: help;
}

strong,
b {
  color: rgba(29, 43, 76, .85);
}

.image-container,
.image-container .link,
.image-container .caption {
  display: block;
}

.image-container {
  text-align: center;
}

.image-container .title {
  display: inline-block;
  opacity: .6;
  font-size: .875em;
  text-align: initial;
  min-height: 22px;
  padding: 10px 5px;
}

#header {
  padding-top: 20px;
  padding-bottom: 20px;
  min-height: 64px;
  margin-bottom: 30px;
  
  background-color: #fff;
}

#content {
  display: block;
  margin: 0 auto;
  max-width: 720px;
}

#footer {
  font-size: .75em;
  margin-top: 48px;
  margin-bottom: 30px;
}

.header.wrap {
  overflow: hidden;
}

.header.wrap,
.nav.wrap {
  margin-top: -5px;
}

.header.wrap>*,
.nav.wrap>* {
  margin-top: 5px;
}

.header.left-side,
.header.right-side {
  display: inline-block;
  text-align: initial;
}

.header.left-side {
  float: left;
}

.header.right-side {
  float: right;
}

.site.home:hover {
  opacity: 0.5;
  text-decoration: none;
}

.site.logo {
  height: 42px;
  border-radius: 3px;
  vertical-align: middle;
  margin-right: 8px;
}

.site.name {
  color: rgba(29, 43, 76, .85);
}

.site.slogan {
  font-size: .875em;
  text-align: center;
}

.site.slogan .title {
  display: inline-block;
  text-align: initial;
  min-height: 22px;
}

.nav.item {
  display: inline-block;
  padding: 4px 6px;
}

.footer-wrap {
  display: block;
  text-align: center;
}

.date {
  font-size: .875em;
}

.langs {
  display: inline-block;
  list-style: none;
  font-size: .875em;
}

.lang {
  margin-left: 10px;
}

.note.list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.note.list .item {
  width: 100%;
  margin-top: 16px;
  padding: 20px;
  background-color: #fff;
  border-radius: 6px;
  box-shadow: inset -1px 0 0 0 rgba(224, 227, 231, .6),
              inset 0 -1px 0 0 #e0e4e7, inset 1px 0 0 0 rgba(224, 227, 231, .6);
}

.note.list .item:hover {
  box-shadow: 0 2px 6px 0 #e0e4e7,
              inset -1px 0 0 0 rgba(224, 227, 231, .3), inset 0 -1px 0 0 #e0e4e7,
              inset 1px 0 0 0 rgba(224, 227, 231, .2);
}

.nav.item:hover {
  opacity: .5;
  text-decoration: none;
}

.tag:hover,
.category:hover {
  opacity: .5;
  text-decoration: none;
}

.title {
  color: rgba(29, 43, 76, .85);
}

.note {
  display: block;
  text-decoration: none;
}

.note:hover {
  text-decoration: none;
}

.note.title,
.site.name {
  font-size: 1.125em;
  font-weight: 600;
}

.mldr {
  opacity: .6;
}

.note.title,
.note.date,
.note.content,
.note.imgs,
.note.labels {
  margin: 5px 0;
}

.note.content {
  color: rgb(36, 41, 46);
}

.note.imgs {
  display: block;
  border: 0px solid transparent;
}

.note.imgs .img {
  object-fit: cover;
  height: 80px;
  min-width: 80px;
  max-width: 120px;
  border-radius: 4px;
  border: 1px solid #e6e6e6;
  margin: 5px 0 0 5px;
}

.cover {
  width: 100%;
}

.article.header {
  text-align: center;
  margin-top: 4px;
  margin-bottom: 24px;
}

.article.date {
  margin-top: 24px;
}

.tag,
.category {
  display: inline-block;
  font-weight: 600;
  margin: 5px 8px 5px 0;
}

.tag::before {
  content: "\23";
  opacity: .5;
}

.tag {
  color: rgba(29, 43, 76, .85);
}

.category {
  padding: 0 6px;
  border-radius: 3px;
  color: #fff;
  background-color: rgba(29, 43, 76, .85);
}

.article.labels,
.article.license,
.article.author,
.article.navigation,
.article.discussion,
.article.share {
  margin-top: 32px;
}

.article.discussion {
  border-top: 1px dashed #e6e6e6;
  border-bottom: 1px dashed #e6e6e6;
}

.article.navigation p {
  margin: 0;
}

.article.navigation p+p {
  margin-top: 5px;
}

.article.navigation .link {
  font-weight: 600;
}

.article.navigation .li {
  display: inline-block;
  margin-right: 5px;
}

.article.license {
  background-color: #f9f9f9;
  border-radius: 3px;
  margin: 30px 0;
  padding: 15px 20px;
  border: 2px dashed #ddd;
}

.article.author {
  text-align: center;
}

.article.author>* {
  margin-top: 16px;
}

.article.author .avatar {
  display: block;
  max-width: 130px;
  margin: auto;
  border-radius: 3px;
}

.article.author .name {
  font-size: 1.25em;
}

.article.author .bio {
  color: #999;
}

.article.author .details .item {
  display: inline-block;
  margin-left: 10px;
  margin-right: 10px;
}

.article.author .details .item:hover {
  text-decoration: none;
  opacity: .5;
}

.slogan,
.date,
.license {
  color: #999;
}

.pagination {
  display: block;
  text-align: center;
  margin: 30px 0;
}

.pagination ul {
  display: inline-block;
  list-style: none;
  font-weight: 600;
  padding: 0;
  margin: 0;
}

.pagination ul li {
  display: inline;
}

.pagination ul li a {
  color: #06c;
  float: left;
  padding: 8px 16px;
  text-decoration: none;
}

.pagination ul li a.active {
  background-color: #06c;
  color: #fff;
}

.pagination ul li a:hover:not(.active) {
  background-color: rgba(0, 102, 204, .5);
}

.article-container {
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 12px 16px 0 rgba(29, 43, 76, .12);
}

.article-container {
  background-color: #fff;
}

.article.markdown-body {
  display: block;

  margin-top: 20px;
  margin-bottom: 20px;

  background-image: linear-gradient(90deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%), linear-gradient(360deg, rgba(50, 0, 0, 0.05) 3%, rgba(0, 0, 0, 0) 3%);
  background-size: 20px 20px;
  background-position: center center;
}

.article.markdown-body h1,
.article.markdown-body h2,
.article.markdown-body h3,
.article.markdown-body h4,
.article.markdown-body h5,
.article.markdown-body h6 {
  color: rgba(29, 43, 76);
  margin-top: 24px;
  margin-bottom: 20px;
}

.article.markdown-body h1,
.article.markdown-body h2 {
  padding-bottom: 0.3em;
  border-bottom: 1px solid #e6e6e6;
}

.article.markdown-body img {
  border-radius: 3px;

  -ms-transform: scale(1);
  -ms-transition: transform 0.25s ease-in-out 0s;

  -moz-transform: scale(1);
  -moz-transition: transform 0.25s ease-in-out 0s;

  -webkit-transform: scale(1);
  -webkit-transition: transform 0.25s ease-in-out 0s;

  transform: scale(1);
  transition: transform 0.25s ease-in-out 0s;
}

.article.markdown-body img:hover {
  -ms-transform: scale(1.04);
  -ms-transition: transform 0.25s ease-in-out 0s;

  -moz-transform: scale(1.04);
  -moz-transition: transform 0.25s ease-in-out 0s;

  -webkit-transform: scale(1.04);
  -webkit-transition: transform 0.25s ease-in-out 0s;

  transform: scale(1.04);
  transition: transform 0.25s ease-in-out 0s;
}

.article.markdown-body blockquote,
.article.markdown-body q {
  opacity: .85;
}

.article.markdown-body blockquote {
  padding: .95em;
  border-radius: 6px;
  border-left: 6px solid #fee450;
  background-color: #fbf8e8;
}

.article.markdown-body q::before,
.article.markdown-body q::after {
  opacity: .6;
}

.article.markdown-body q::before {
  /* ❝ */
  content: "\275D";
}

.article.markdown-body q::after {
  /* ❞ */
  content: "\275E";
}

.article.markdown-body ol,
.article.markdown-body ul {
  margin-bottom: 20px;
  margin-block-end: 20px;
  -webkit-margin-after: 20px;

  padding-inline-start: 40px;
  -webkit-padding-start: 40px;
  padding-left: 40px;
}

.article.markdown-body hr {
  opacity: .4;
  border-top-style: dashed;
  border-top-color: inherit;
}

.article.markdown-body table {
  display: block;
  width: 100%;
  overflow: auto;
}

.article.markdown-body table tr {
  border: 0;
}

.article.markdown-body table th {
  font-weight: 600;
}

.article.markdown-body table td,
.article.markdown-body table th {
  min-width: 86px;
  padding: 6px 13px;
  border: 1px solid #e6e6e6;
}

.article.markdown-body table th:empty {
  padding: 0;
  border: 0;
}

.article.markdown-body .plstable th {
  max-width: 25%;
}

.article.markdown-body li+li {
  margin-top: 20px;
}

.article.markdown-body>*,
.article.markdown-body li>*,
.article.markdown-body blockquote>*,
.article.markdown-body .footnotes>* {
  margin-top: 0;
  margin-bottom: 20px;
}

.article.markdown-body> :first-child,
.article.markdown-body li> :first-child,
.article.markdown-body blockquote> :first-child {
  margin-top: 0;
}

.article.markdown-body> :last-child,
.article.markdown-body li> :last-child,
.article.markdown-body blockquote> :last-child {
  margin-bottom: 0;
}

#header,
#foooter {
  padding-left: 15px;
  padding-right: 15px;
}

@media (max-width: 4300px) {
  .note.list .item,
  .article-container {
    border-radius: 0;
    box-shadow: none;
  }

  .article.bottom {
    padding-left: 8px;
    padding-right: 8px;
  }
}

/* mathjax & katex patch */

.article.markdown-body .katex-display {
  display: inline-block;
}

.article.markdown-body .katex,
.article.markdown-body .MathJax {
  margin: 0;
  padding: 0;
}

.article.markdown-body .katex-display,
.article.markdown-body .MathJax_Display {
  margin: 0;
  padding: .2em .4em;
}

.article.markdown-body .MathJax {
  outline: none;
}

/* chroma lntable patch */
.article.markdown-body .lntable {
  border-radius: 3px;
  border: 1px solid #e6e6e6;
}

.article.markdown-body .lntable .lntd .lnt {
  display: block;
  margin: 0;
  padding: 0;
}

.article.markdown-body .lntable .lntd {
  min-width: 0;
  padding: 0 5px;
  border: 0;
}

.article.markdown-body .lntable .lntd pre {
  overflow: visible;
  width: 100%;
  margin-left: -15px;
  margin-right: -15px;
  border: 0;
}

.article.markdown-body .lntable tr>:first-child {
  border-right: 1px dashed #e6e6e6;
}